package cn.yer.util;

import com.alibaba.fastjson.JSONObject;

public class ResultUtil {
    private static JSONObject obj;
    public static String success(String msg){
       obj =new JSONObject();
       obj.put("FLAG",1);
       obj.put("DATA",msg);
       return obj.toJSONString();
    }

    public static String error(String msg){
        obj =new JSONObject();
        obj.put("FLAG",0);
        obj.put("DATA",msg);
        return obj.toJSONString();
    }
}
